package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.query.album.AlbumInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface AlbumInfoMapper extends BaseMapper<AlbumInfo> {
    /**
     * 根据条件分页查询专辑列表
     *
     * @param albumInfoQuery 查询条件
     * @param page           分页信息
     * @return 分页数据
     */
    Page<AlbumListVo> selectAlbumListVoByQuery(@Param("vo") AlbumInfoQuery albumInfoQuery, Page<AlbumListVo> page);
}
